# -*- coding: utf-8 -*-

import os
import sys
import re

# list_test = [1, 2, 3, (1, ), (5, 5)]
# if (1, ) in list_test:
#     print('你好啊')
# else:
#     print('一边去')

# 这是提取数字
# number = re.findall(r"\d+", "《瓦尼塔4斯的手记》第841话地下墓穴-死亡沉眠之处-", re.S)
# print(number[-1])


# dict_test = {}
# dict_test['你好'] = []
# dict_test['你好'].append(2)
# print(dict_test)


# list1 = [
#         "123{}234",
#         '1234P{}214'
#     ]
#
# for i in range(5):
#     for link in list1:
#         link.format(i)
#         print(link.format(i))
# import execjs
#
# with open("tencentJs.js", "r", encoding="gbk") as f:
#     js_code = f.read()
# guid = execjs.compile(js_code).call('createGUID')
# print(guid)
#

# with open('proxyIp.txt', 'r', encoding='utf-8') as f:
#     s = f.read()
# print(s, len(s))
# s = s.split('\n')[0:-1]
# print(s)
# import requests
#
# proxies = {
#     "http": "http://152.136.62.181:9999",
#     "https": "http://152.136.62.181:9999"
# }
#
# HEADERS = {
#     'origin': 'https://www.bilibili.com',
#     'referer': 'https://www.bilibili.com/bangumi/play/ep450056',
#     'User-Agent': 'Mozilla/5.0 (X11; U; Linux x86_64; zh-CN; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10'
# }
# url = 'https://xy221x7x236x6xy.mcdn.bilivideo.cn:4483/upgcxcode/37/85/487858537/487858537_nb2-1-30080.m4s?e=ig8euxZM2rNcNbdlhoNvNC8BqJIzNbfqXBvEqxTEto8BTrNvN0GvT90W5JZMkX_YN0MvXg8gNEV4NC8xNEV4N03eN0B5tZlqNxTEto8BTrNvNeZVuJ10Kj_g2UB02J0mN0B5tZlqNCNEto8BTrNvNC7MTX502C8f2jmMQJ6mqF2fka1mqx6gqj0eN0B599M=&uipk=5&nbs=1&deadline=1644960182&gen=playurlv2&os=mcdn&oi=1867870717&trid=0000ad2815805c534de99544b61c9f4074adp&platform=pc&upsig=f0c000bdf8926903462891de12044297&uparams=e,uipk,nbs,deadline,gen,os,oi,trid,platform&mcdnid=12000118&mid=392329931&bvc=vod&nettype=0&orderid=0,3&agrr=1&bw=115922&logo=A0000800'
# res = requests.get(url=url, headers=HEADERS)
# print(res.status_code)
# with open('1.mp4', 'wb') as f:
#     f.write(res.content)
#     print('成了')
